package com.sptpc.learnspring.model;

import java.io.Serializable;

public class OrderDrink extends OrderDrinkKey implements Serializable {
    private Integer itemsQuantity;

    private static final long serialVersionUID = 1L;

    public Integer getItemsQuantity() {
        return itemsQuantity;
    }

    public OrderDrink withItemsQuantity(Integer itemsQuantity) {
        this.setItemsQuantity(itemsQuantity);
        return this;
    }

    public void setItemsQuantity(Integer itemsQuantity) {
        this.itemsQuantity = itemsQuantity;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", itemsQuantity=").append(itemsQuantity);
        sb.append("]");
        return sb.toString();
    }
}